package com.zhaotianhao.basicservice.controller;


import com.zhaotianhao.basicservice.common.JsonResult;
import com.zhaotianhao.basicservice.service.IDictionarieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 字典数据 前端控制器
 * </p>
 *
 * @author Z-7
 * @since 2022-05-16
 */
@RestController
@RequestMapping("/dictionarie")
public class DictionarieController {
    @Autowired
    private IDictionarieService iDictionarieService;

    @GetMapping("getAllDictionaries")
    public JsonResult getAllDictionaries() {
        return JsonResult.successd(iDictionarieService.list());
    }
}
